'use strict';

/**
 * 人脸特征schema
 */
const mongoose = require('mongoose'), Schema = mongoose.Schema;

const newFaceFeatureSchema = new Schema({
    // _id: {type: String},//人脸特征对应的id
    group_id: {type: String},//存储库的id 
    features: {type: Schema.Types.Mixed}, //特征向量
    // person_id: {type: String}, //所属人的id
    // u_tp: { type: Number, required: true }, //员工管理（0:员工，1：实习生），访客管理（2：劳务、出差，3：贵宾），4：陌生人 5学生
}, {timestamps: {createdAt: 'c_at', updatedAt: 'm_at'}});

module.exports = mongoose.model('NewFaceFeatureModel', newFaceFeatureSchema, "new_face_feature");
